package co.edu.usbcali.ai.ga;

public class EvaluationThread extends Thread {
	
	private Individual individual;
	private float eval;
	private Breed breed;
	
	public EvaluationThread(Individual individual, Breed breed) {
		super();
		this.individual = individual;
		this.breed = breed;
	}

	public void run(){
//		eval=breed.eval(individual);
		eval=breed.evaluate(individual);
	}

	public Individual getIndividual() {
		return individual;
	}

	public void setIndividual(Individual individual) {
		this.individual = individual;
	}

	public float getEval() {
		return eval;
	}

	public void setEval(float eval) {
		this.eval = eval;
	}

	public Breed getBreed() {
		return breed;
	}

	public void setBreed(Breed breed) {
		this.breed = breed;
	}
	
	

}
